//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.jim.core.packets;

import org.jim.core.ImStatus;
import org.jim.core.Status;

public class MarkMessageReadRespBody extends RespBody {
    private String fromUserId;
    private String userId;
    private String groupId;
    private boolean isSelf = false;
    UserMessageData userMessageData;

    public boolean isSelf() {
        return this.isSelf;
    }

    public void setSelf(boolean self) {
        this.isSelf = self;
    }

    public UserMessageData getUserMessageData() {
        return this.userMessageData;
    }

    public void setUserMessageData(UserMessageData userMessageData) {
        this.userMessageData = userMessageData;
    }

    public MarkMessageReadRespBody() {
        super(Command.COMMAND_MARK_MESSAGE_READ_RESP, (Status)null);
    }

    public MarkMessageReadRespBody(Integer code, String msg) {
        super(Command.COMMAND_MARK_MESSAGE_READ_RESP, (Status)null);
        this.code = code;
        this.msg = msg;
    }

    public MarkMessageReadRespBody(Status status) {
        super(Command.COMMAND_MARK_MESSAGE_READ_RESP, status);
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getGroupId() {
        return this.groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getFromUserId() {
        return this.fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public static MarkMessageReadRespBody success() {
        return new MarkMessageReadRespBody(ImStatus.C10030);
    }

    public static MarkMessageReadRespBody failed() {
        return new MarkMessageReadRespBody(ImStatus.C10031);
    }
}
